package com.unicloud.medical.sample.common.config;

import com.unicloud.medical.oss.client.properties.OSSClientProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;

//@Configuration
public class CustomConfiguration {

    @Autowired
    private OSSClientProperties ossClientProperties;

    @Bean
    public CustomOssNameSelector customOssTypeSelector() {
        return new CustomOssNameSelector(ossClientProperties.getOssName());
    }
}
